﻿cmake_minimum_required(VERSION 2.8)

set(BUILD_PROJECT_NAME "base")

set(SRC_LIST
	${CMAKE_CURRENT_SOURCE_DIR}/common.h
	${CMAKE_CURRENT_SOURCE_DIR}/common.cpp
	${CMAKE_CURRENT_SOURCE_DIR}/noncopyable.hpp
	${CMAKE_CURRENT_SOURCE_DIR}/sigslot.h
	${CMAKE_CURRENT_SOURCE_DIR}/event_loop.h
	${CMAKE_CURRENT_SOURCE_DIR}/event_loop.cpp
	${CMAKE_CURRENT_SOURCE_DIR}/listener.h
	${CMAKE_CURRENT_SOURCE_DIR}/listener.cpp
	${CMAKE_CURRENT_SOURCE_DIR}/async_socket.h
	${CMAKE_CURRENT_SOURCE_DIR}/async_socket.cpp
	${CMAKE_CURRENT_SOURCE_DIR}/http_helper.h
	${CMAKE_CURRENT_SOURCE_DIR}/http_helper.cpp
	${CMAKE_CURRENT_SOURCE_DIR}/string_util.h
	${CMAKE_CURRENT_SOURCE_DIR}/string_util.cpp
)

SOURCE_GROUP(base FILES
	${CMAKE_CURRENT_SOURCE_DIR}/common.h
	${CMAKE_CURRENT_SOURCE_DIR}/common.cpp
	${CMAKE_CURRENT_SOURCE_DIR}/noncopyable.hpp
	${CMAKE_CURRENT_SOURCE_DIR}/sigslot.h
	${CMAKE_CURRENT_SOURCE_DIR}/event_loop.h
	${CMAKE_CURRENT_SOURCE_DIR}/event_loop.cpp
	${CMAKE_CURRENT_SOURCE_DIR}/listener.h
	${CMAKE_CURRENT_SOURCE_DIR}/listener.cpp
	${CMAKE_CURRENT_SOURCE_DIR}/async_socket.h
	${CMAKE_CURRENT_SOURCE_DIR}/async_socket.cpp
	${CMAKE_CURRENT_SOURCE_DIR}/http_helper.h
	${CMAKE_CURRENT_SOURCE_DIR}/http_helper.cpp
	${CMAKE_CURRENT_SOURCE_DIR}/string_util.h
	${CMAKE_CURRENT_SOURCE_DIR}/string_util.cpp
)

add_library(${BUILD_PROJECT_NAME} STATIC ${SRC_LIST})




